package com.egao.common.module.company.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 场地预约记录表单
 *
 * @author dl
 * @since 2021-01-25 10:36:51
 */
@Data
@ApiModel(description = "场地预约记录表单")
public class FieldRecordFormVO implements Serializable  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("场地编号")
    private Integer fieldId;

    @ApiModelProperty("学校新增宣讲会字段")
    private String dataField;

    @ApiModelProperty("业务类型：1：宣讲会")
    private Integer type;

    @ApiModelProperty("单位ID")
    private Integer companyId;

    @ApiModelProperty("业务编号（招聘编号、宣讲会编号等）")
    private Integer businessId;

    @ApiModelProperty("宣讲会标题")
    private String title;

    @ApiModelProperty("预约完整时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("预约结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("预约日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty("时间类型（上午 1 下午 2 晚上 3）")
    private String timeType;
    
    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    private Integer deleted;
}